package com.community.web.master.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.community.model.entity.Goods;
import com.community.web.master.domain.dto.GoodsDto;
import com.community.web.master.domain.dto.PageGoodsDto;
import com.community.web.master.domain.vo.GoodsWithCategoryNameVo;
import com.community.web.master.domain.vo.PageResult;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 李晶
 * @since 2024-07-02
 */
public interface IGoodsService extends IService<Goods> {

    PageResult pageQuery(PageGoodsDto pageGoodsDto);


    void add(GoodsDto goodsDto);

    void updateGoods(GoodsDto goodsDto);

    GoodsWithCategoryNameVo getGoodsById(Integer id);

    List<GoodsWithCategoryNameVo> getAllGoodsWithCategoryName();
}
